package com.spring.campus_express_delivery.dao;

import com.spring.campus_express_delivery.entity.ExpressCompany;
import com.spring.campus_express_delivery.entity.ExpressType;
import com.spring.campus_express_delivery.entity.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository("ExpressTypeDao")
@Mapper
public interface ExpressTypeDao {
    //取件地址列表
    List<ExpressType> selectExpressWeightTypeByPage(HashMap<String, Object> map);
    //统计数目
    int selectCountByExpressWeightType();

    void insertExpressWeightType(ExpressType expressType);

    ExpressType selectByExpressWeightId(int id);

    void updateExpressWeightType(ExpressType expressType);

    void deleteExpressWeightById(Integer id);

    ExpressType selectByExpressWeightType(String expressWeightType);


//    //根据订单重量类型查询订单类型编号
//    ExpressType selectExpressWeightType(String expressWeightType);
//    //根据快递取件地址查询订单类型编号
//    ExpressType selectOrdersByOutAddress(String outAddress);
//
//    //根据快递送达地址查询订单类型编号
//    ExpressType selectOrdersByServiceAddress(String serviceAddress);

}
